Optimal. Leaf size=67 \[ \frac {\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a}-\frac {b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{2 a^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {1356, 744, 738,
212} \begin {gather*} \frac {x \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}{a}-\frac {b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right )}{2 a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 738
Rule 744
Rule 1356
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+\frac {c}{x^2}+\frac {b}{x}}} \, dx &=-\text {Subst}\left (\int \frac {1}{x^2 \sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a}+\frac {b \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )}{2 a}\\ &=\frac {\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a}-\frac {b \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+\frac {b}{x}}{\sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{a}\\ &=\frac {\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a}-\frac {b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{2 a^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 88, normalized size = 1.31 \begin {gather*} \frac {2 \sqrt {a} (c+x (b+a x))+b \sqrt {c+x (b+a x)} \log \left (a \left (b+2 a x-2 \sqrt {a} \sqrt {c+x (b+a x)}\right )\right )}{2 a^{3/2} x \sqrt {a+\frac {c+b x}{x^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 88, normalized size = 1.31
method | result | size |
default | \(\frac {\sqrt {a \,x^{2}+b x +c}\, \left (2 \sqrt {a \,x^{2}+b x +c}\, a^{\frac {3}{2}}-b \ln \left (\frac {2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a \right )}{2 \sqrt {\frac {a \,x^{2}+b x +c}{x^{2}}}\, x \,a^{\frac {5}{2}}}\) | \(88\) |
risch | \(\frac {a \,x^{2}+b x +c}{a \sqrt {\frac {a \,x^{2}+b x +c}{x^{2}}}\, x}-\frac {b \ln \left (\frac {\frac {b}{2}+a x}{\sqrt {a}}+\sqrt {a \,x^{2}+b x +c}\right ) \sqrt {a \,x^{2}+b x +c}}{2 a^{\frac {3}{2}} \sqrt {\frac {a \,x^{2}+b x +c}{x^{2}}}\, x}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 171, normalized size = 2.55 \begin {gather*} \left [\frac {4 \, a x \sqrt {\frac {a x^{2} + b x + c}{x^{2}}} + \sqrt {a} b \log \left (-8 \, a^{2} x^{2} - 8 \, a b x - b^{2} - 4 \, a c + 4 \, {\left (2 \, a x^{2} + b x\right )} \sqrt {a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}\right )}{4 \, a^{2}}, \frac {2 \, a x \sqrt {\frac {a x^{2} + b x + c}{x^{2}}} + \sqrt {-a} b \arctan \left (\frac {{\left (2 \, a x^{2} + b x\right )} \sqrt {-a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a^{2} x^{2} + a b x + a c\right )}}\right )}{2 \, a^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {a + \frac {b}{x} + \frac {c}{x^{2}}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.45, size = 53, normalized size = 0.79 \begin {gather*} \frac {x\,\sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}{a}-\frac {b\,\mathrm {atanh}\left (\frac {a+\frac {b}{2\,x}}{\sqrt {a}\,\sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right )}{2\,a^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________